aboutsummaryrefslogtreecommitdiff
path: root/pages/search/[query].vue
diff options
context:
space:
mode:
authorKenimarru <[email protected]>2024-01-09 18:45:34 +0100
committerKenimarru <[email protected]>2024-01-09 18:45:34 +0100
commita74a925e23addd5cc40476bda5827ec382a2618b (patch)
tree16d9ab0b14a30159da945033c4d072228a86e146 /pages/search/[query].vue
parentv0.4.0 (diff)
downloadhiruku-master.tar.xz
hiruku-master.zip
Diffstat (limited to 'pages/search/[query].vue')
-rw-r--r--pages/search/[query].vue8
1 files changed, 8 insertions, 0 deletions
diff --git a/pages/search/[query].vue b/pages/search/[query].vue
new file mode 100644
index 0000000..42d6fcd
--- /dev/null
+++ b/pages/search/[query].vue
@@ -0,0 +1,8 @@
+<template>
+ <Cards title="Search Result" :description="`Query: ${query}`" :data="data" />
+</template>
+
+<script setup>
+const { query } = useRoute().params
+const { data } = await useFetch("/api/search?query=" + query);
+</script> \ No newline at end of file